package com.qq.springcloud.service.Impl;

import com.qq.springcloud.dao.PaymentDao;
import com.qq.springcloud.entities.Payment;
import com.qq.springcloud.service.PaymentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @ClassName PaymentServiceImpl
 * @Description TODO
 * Author yangqinglin
 * @Date 2020/7/19 11:19
 * @Version
 **/

@Service
public class PaymentServiceImpl implements PaymentService {

    @Resource
    public PaymentDao paymentDao;

    @Override
    public int create(Payment payment) {
        return paymentDao.create(payment);
    }

    @Override
    public Payment getPaymentById(long id) {
        return paymentDao.getPaymentById(id);
    }
}
